<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>助学申请审核</title>
    <link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<script type="text/javascript" language="java">
 	 function selectid(object){
	  var namelist=document.getElementsByName('deleteUserPtId');
	  for(var i=0;i<namelist.length;i++)
		  {
		  var e=namelist[i];
		  e.checked=object.checked;
		  }
  }
 
 </script>
  </head>
  
  <body>
  
   	<html:form action="auditptdelete.do">
    <table  border="1" cellspacing="0" width="600">
    <tr>
	    <td align="center" colspan="6" ><font color="#000066" size="+3"  > 
	     助学岗位审核管理</font>
	    </td>
    </tr>
    <tr>
       <td  colspan=6">学生姓名: 
       		<html:text property="stuName" ></html:text> 
			<html:submit value="查询" ></html:submit> 
         </td>
   	</tr>
  
   	<tr>
   	<td>
   	<html:checkbox property="userPt" onclick="selectid(this)">全选</html:checkbox>
   	</td>
       <td >单位名称
		</td>
        <td > 工资</td>
        	
        <td>申请学生姓名</td>
			
        <td >状态</td>
       <td>审核
       </td>
   	</tr>
   	<c:forEach items="${upList}" var="userPartTime" >
     <tr>
     <td ><html:checkbox property="deleteUserPtId" value="${userPartTime.uspartId}"></html:checkbox>
	 </td>
     
       <td >${userPartTime.pts.company}</td>
        <td >${userPartTime.pts.money} </td>
        <td>${userPartTime.user.name}</td>
        <td >   
        
        <c:if test="${userPartTime.parStatus == 0}">
			<c:out value="审批中" />
		</c:if>
		<c:if test="${userPartTime.parStatus == 1}">
			<c:out value="通过" />
		</c:if>
		<c:if test="${userPartTime.parStatus == 99}" >
			<c:out value="驳回" />
		</c:if>
           </td>
       <td>
       <c:if test="${userPartTime.parStatus == 0}">
		<a href="parttimeapplyshow.do?auditId=<c:out value='${userPartTime.uspartId}'/>">详细</a>
	 </c:if>
      
       </td>
   	</tr>   	
   	</c:forEach>
   	<tr> 
   	<td colspan="6">
   	<html:submit  value="删除"></html:submit> </td></tr>
   	   <tr>
   	   <td colspan="6">
   	   <a href="auditptmag.do?pageNum=${firstPage}">首页</a>|<a href="auditptmag.do?pageNum=${proPage}">上一页</a>|<a href="auditptmag.do?pageNum=${nextPage}">下一页</a>|<a href="auditptmag.do?pageNum=${lastPage}">最后一页</a>
   	   </td>
   	   
   	   </tr>
   	</table>
	</html:form>
   	</body>
   	</html>